import Vue from 'vue'
import Vuex from 'vuex'

import user from './modules/user'
import getters from './getters'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    // 面包屑导航显示的数据
    navList: []
  },
  mutations: {
    setNavList(state, data) {
      state.navList = data
    }
  },
  getters,
  modules: {
    user
  }
})
